package cn.tinlan.shopcoin.app.chat;

import android.content.Intent;
import android.view.View;

import butterknife.BindView;
import cn.tinlan.shopcoin.R;
import cn.tinlan.shopcoin.app.koi.KoiMessageActivity;
import cn.tinlan.shopcoin.app.koi.KoiNoticeActivity;
import cn.tinlan.shopcoin.base.BaseFragment;

/**
 * Created by Mortimer on 2018/12/26. 10:08
 * 佛祖🙏，永无bug。
 */
public class ChatFragment extends BaseFragment implements View.OnClickListener{

    @BindView(R.id.chat_notice)
    View chatNotice;

    @Override
    protected int provideContentViewId() {
        return R.layout.fragment_chat;
    }

    @Override
    public void initData() {
        super.initData();

        bindSubViewClickEvents();
    }

    private void bindSubViewClickEvents() {
        chatNotice.setOnClickListener(this);
    }

    @Override
    protected void loadData() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.chat_notice:
                startActivity(new Intent(mActivity, KoiNoticeActivity.class));
                break;
        }

    }
}
